package gttp.nspa.client.adm.activity;

import gttp.nspa.shared.om.Customer;

import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.IsWidget;

public interface ICustomerList extends IsWidget {

    public interface Presenter {

        void onCreateButtonClicked();

        void onEditCustomerRequest(Customer cust);

        void onListCustomerRequest(int offset, int limit, String[] orders, AsyncCallback<List<Customer>> cb);
    }

    void setPresenter(Presenter presenter);

    void reload(boolean force);

    void customerAdded(Customer cust);

    void customerModified(Customer cust);

    void customerRemoved(Customer cust);
}
